package net.neptech.repository;

import net.neptech.dto.sys.StaffDTO;
import net.neptech.model.sys.Staff;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

@Repository
public interface StaffRepository extends JpaRepository<Staff,Long> {
    List<Staff> findByTitleIdIsGreaterThan(int posId);

    List<Staff> findByDeptIdIn(Collection<Long> deptIds);

    List<Staff> findByStaffNameLike(String staffName);
}
